<div id="grid-pager" style="position: relative;">
    <div style="position: absolute; left: 10px; height: 25px; line-height: 25px;">已选中<span id="checkNum"></span>个</div>
</div>
<script type="text/javascript">
    $(function () {
        var rows = getGridXls().length;
        $("#checkNum").html(rows)
        $("table").on('click',function(){
            var rows = getGridXls().length;
            $("#checkNum").html(rows)

        })
    })
</script>
</div>